$(function () {
    $("#tab-first").click(function () {
        $("#pane-second").hide();
        $("#pane-first").show();
        $(".el-tabs_active").css("margin-left","20px");
        $("#tab-first").css("color","#409eff");
        $("#tab-second").css("color","#000000")

    });
    $("#tab-second").click(function () {
        $("#pane-first").hide();
        $("#pane-second").show();
        $(".el-tabs_active").css("margin-left","110px");
        $("#tab-second").css("color","#409eff");
        $("#tab-first").css("color","#000000");
    });
});


$.ajax({
    url: "/sdkd/userPageInfo/selectSendUserPageInfo.do",
    async: false,
    dataType: "json",
    type: "post",
    success: function (data) {
        let html = ''
        console.log(data)
        var list = data.data
        if(null == list){
            console.log("没有数据")
            return
        }
        for (let i = 0; i < list.length; i++) {
            let status = list[i].status
            pageNum = list[i].pageNum
            html += `<tr class="list"><td>${i + 1}</td>
                <td>${list[i].pageNum}</td>
                <td>${list[i].sendName}</td>
                <td>${list[i].receiveName}</td>
                <td class="status" id=${status}>${list[i].status}</td>
                <td><input type="button" class="sendDetail" id=${pageNum} data-target="#myModal1" data-toggle="modal" value="订单详情"></td></tr>`
        }
        $("#pageTable").append(html)
    }
})
